package cn.cjj.gulimall.auth.feign;

import cn.cjj.common.utils.R;
import cn.cjj.gulimall.auth.vo.SocialUser;
import cn.cjj.gulimall.auth.vo.UserLoginVo;
import cn.cjj.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author CuiJunJie
 * @create 2021/7/2-15:52
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @RequestMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo user);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo user);

    @RequestMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocialUser user);
}

